package com.hrma.dao;

import com.github.pagehelper.Page;
import com.hrma.entity.Department;
import com.hrma.entity.Post;
import com.hrma.entity.SelectResult;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DepartmentMapper {
    void addDepartment(Department data);

    void deleteDepartment(int id);

    void updateDepartment(Department data);

    List<SelectResult> selectDepartment();

    Page<Department> getList(Department data);

    boolean exist(@Param("id") Integer id, @Param("departmentName") String departmentName, @Param("introduce") String introduce);
}
